import request from '@/request/index.js';

export function addMsg(params) {
	return request.post({
		url: '/app-api/collaboration/message-log/create-patient',
		data: params || {},
		custom: {
			title: "患者发送消息后记录",
			authentication: true
		}
	});
}

export function readMsg(params) {
	return request.get({
		url: '/app-api/collaboration/message-log/read-patient',
		data: params || {},
		custom: {
			title: "患者已读消息",
			authentication: true
		}
	});
}

export function listLog(params) {
	return request.get({
		url: '/app-api/collaboration/message-log/list',
		data: params || {},
		custom: {
			title: "问诊消息列表",
			authentication: true
		}
	});
}

export function checkValid(params) {
	return request.get({
		url: '/app-api/collaboration/order-consultation/get-afoot-consultation-patient',
		data: params || {},
		custom: {
			title: "查询有效问诊",
			authentication: true
		}
	});
}

export function listPatientLog(params) {
	return request.get({
		url: '/app-api/collaboration/message-log/message-log-patient',
		data: params || {},
		custom: {
			title: "查询消息记录",
			authentication: true
		}
	});
}

export function checkSystem(params) {
	return request.get({
		url: '/app-api/user/with-treatment-system-messages/remind',
		data: params || {},
		custom: {
			title: "查询系统消息概括",
			authentication: true
		}
	});
}

export function listSystemNotice(params) {
	return request.get({
		url: '/app-api/user/with-treatment-system-messages/page',
		data: params || {},
		custom: {
			title: "查询系统消息列表",
			authentication: true
		}
	});
}

export function readSystemNotice(params) {
	return request.get({
		url: '/app-api/user/with-treatment-system-messages/update',
		data: params || {},
		custom: {
			title: "患者已读消息",
			authentication: true
		}
	});
}
